list = [1, 2, 3, 4, 5, 6, 7, 6, 3]
for value in list:
    if value == 3:
        for i in range(0, list.count(value)):
            list.remove(value)

for l in list:
    print(l)
